import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/pages/Home/index.vue'),
      meta: {
        title: '首页',
        icon: 'Document',
        description: 'AI助手后台管理系统',
      },
    },
    {
      path: '/chat',
      name: 'material-library',
      component: () => import('@/pages/Home/index.vue'),
      meta: {
        title: '素材库总览',
        icon: 'Files',
        description: '管理和浏览您的AI素材资源',
      },
    },
    {
      path: '/history',
      name: 'operation-log',
      component: () => import('@/pages/History/index.vue'),
      meta: {
        title: '操作日志',
        icon: 'Timer',
        description: '查看系统操作日志',
      },
    },
    {
      path: '/model',
      name: 'model-config',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '模型配置',
        icon: 'Monitor',
        description: '配置AI模型参数',
      },
    },
    {
      path: '/api',
      name: 'api-access',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '开放调用API',
        icon: 'Connection',
        description: '管理API访问权限',
      },
    },
    {
      path: '/generation',
      name: 'content-generation',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '文案生成模型',
        icon: 'Edit',
        description: '管理文案生成模型',
      },
    },
    {
      path: '/analytics',
      name: 'data-analytics',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '数据看板',
        icon: 'DataAnalysis',
        description: '查看系统数据分析',
      },
    },
    {
      path: '/core',
      name: 'core-data',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '核心数据概览',
        icon: 'Cpu',
        description: '查看核心业务数据',
      },
    },
    {
      path: '/user',
      name: 'user-insights',
      component: () => import('@/pages/About/index.vue'),
      meta: {
        title: '用户行为洞察',
        icon: 'User',
        description: '分析用户行为数据',
      },
    },
  ],
})

export default router